home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr28
/
sdutils.zip
/
YAROB.DOC
< prev
Wrap
Text File
|
1993-03-01
|
7KB
|
137 lines
YAROB.DOC
(*****************************************************************************)
(* (c) Copyright 1989,90,91 *)
(* MEMTEK Computer Services, 24 Loretta Ave, Wheelers Hill, 3150, Australia. *)
(*****************************************************************************)
What is YAROB?
YAROB stands for Yet Another Read Only Batch Menu System. It is system for
managing DOS batch files. It comes with a minimal set of sample menus that
can be easily supplemented by the person that installs it. YAROB can run
on freestanding DOS systems as well as networked PCs. YAROB is shareware
to individuals, so if you wish to continue using it, you should register
by sending $10 to the address above. Corporations and institutions can
register for $100.
Who would want YAROB?
YAROB grew out of a need for a menu system that could be used by networked
MS-DOS systems and shared by many users at one time that did not have any
write access to the fileserver disks. These basic requirements are common
to many academic sites where networked computers have been provided for
general purpose computing without accounts being issued to all and sundry.
As commercial DOS software becomes more memory hungry it is also important
to minimize the overhead resource usage of any underlying menu system.
Being a read only menu system, it works cooperatively with virus protection
software so that unintentional modification to your system are easier to
detect.
How does YAROB work?
YAROB consists of a main menu batch file (MENU.BAT) and the menu generation
program (SETERROR.EXE). The menu batch file, once started, remains in
operation until a menu option is selected that exits from the menu. Each
time this endless loop starts, the menu generation program is invoked.
The menu generation program scans a predefined directory for batch files.
The batch file names must be match a predefined format (00.bat to 29.BAT).
As each is found, a little information is read so the user can see what the
menu choices offer. Batch files can also carry their own context sensitive
help, but this depends on the installer. The menu choices are presented to
the operator for selection. The users selection results in the setting of
the DOS errorlevel when the program exits. By this means, the program will
not be in memory when the selected batch file is executed.
As completely static batch files cannot cater for all circumstances, YAROB
scans for references within the selected batch file to the DOS environment.
Any characters within two percent signs will be picked up as a parameter and
its current value presented to the operator. The operator has the option of
accepting the current value or entering a new one. If unsure about usage of
the parameter, the operator can return to the menu without executing the
batch file by pressing the escape key.
What resources does YAROB use?
When a YAROB selected batch file is in execution there will be two file
handles in use, one for the main menu and one for the selected batch file.
As YAROB makes use of the DOS environment for transfer of parameters to
the selected batch file, it will probably become necessary to increase the
size of the base environment from the default. This can be done by adding
the following line to your CONFIG.SYS file on your boot disk.
shell=\command.com c:\ /e:512 /p
While the menu is displayed it is easy to check on environment usage by
pressing the escape key. YAROB will notify you if it runs out of environment
space.
The menu batch files will consume some disk space.
How do I install YAROB?
Create a directory that will act as the repository of all the menu item
batch files and then modify the start of the MENU.BAT file so that the
environment variable MDIR contains the full directory name, including the
slash at the end. example;
set mdir=c:\memtek\menu\
Copy the sample menu files to that directory.
Copy the MENU.BAT and SETERROR.EXE file to somewhere that is already on the
DOS path.
When installing on a networked file server it is important to flag all
the menu files as sharable.
How do I write my own menu items?
First write, and test a batch file that does what you want. You probably have
a few candidates already on you root directory or somewhere on the PATH.
The YAROB additions to the standard batch files are relatively simple.
Batch files can carry comments. These are in the form of lines that start
with REM. The first REM line with a comment will be used by YAROB to make
the menu selector and detail. The first word after the REM will be the
selector and the rest of line will be the detail. By example the following
line;
rem DOS Exit the Menu system and return to DOS prompt
Here the selector that will appear on the menu will be "DOS". The detail will
be "Exit the Menu system and return to DOS prompt". The detail will appear on
line 25 at the bottom of the screen.
The lines in the file that start with REM HELP will be used by YAROB as help
to be displayed when the operator presses the F1 key. By example;
rem help
rem help Exit the Menu system and return to the DOS prompt
rem help
rem help Restores full command line control to the user outside the menu
rem help system. To re-enter the menu system type MENU.
A word of warning about REM lines. Apparently DOS scans the lines of
a batch file for pipes, file redirection and environment variables prior
to noticing the REM denoting a comment line. This means that some characters
should be avoided. In particular <,>,>>,| and %.
What about more batch files?
YAROB can currently support up to thirty menu selections on a single menu
level and is designed to support many levels. The menu file prefix is
stored in the environment variable MDIR and this is how YAROB finds the menu
items on any particular level. The prefix can contain a full file path and
a string of characters with which the batch file names start. For example, my
initial value for MDIR is C:\MEMTEK\MENU\ causes the menu generator to find
all the files 00.BAT thru 99.BAT in that directory. If the prefix were to
be changed to D:\OTHER\DEMO the menu generator will search the directory
D:\OTHER for all files DEMO00.BAT thru DEMO99.BAT
The MENU.BAT file can be modified to support more items if you wish, but
thirty seemed to be a reasonable compromise between speed and function.